<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/style/style_news.css" rel="stylesheet" type="text/css" />
<!--正文start-->
<div class="w_960 o_a">
	<?php $this->renderPartial('/news/sidebar_nav',array('id'=>$id));?>
    <div class="video mt10 c_f">
    	<div class="col_main f_l">
            <!--视频列表 start-->
            <div class="video_sort bg_fff" id="videoTab">
            	<div class="tab_hd2">
                	<ul class="c_f">
                    	<li <?php echo ($_GET[id]=='' && $_GET['tag'] =='')?'class="select"':''?>><a href="/home/news/video_list/id/">全部视频</a></li>
                        <?php foreach($video as $row):?>
						<li <?php echo ($_GET[id]==$row->znc_id)?'class="select"':''?>><a href="/home/news/video_list/id/<?php echo $row->znc_id;?>"><?php echo $row->znc_title;?></a></li>
						<?php endforeach;
						if($_GET['tag']):?>
						<li <?php echo ($_GET['tag'])?'class="select"':''?>><a href="/home/news/video_list/tag/<?php echo $_GET['tag'];?>"><?php echo $_GET['tag'];?></a></li>
						<?php endif;?>
					</ul>
                </div>
                <div class="bd tab_cont2">
                	
						<?php  $this->widget('zii.widgets.CListView', array(
							'dataProvider'=>$dataProvider,
							'emptyText'=>'<div class="news_con">暂时没有数据</div>',
							'template'=>'{items}{pager}',
							'itemView'=>'video_listitem',
                            'itemsTagName'=>'ul',
                            'itemsOptions'=>array('class'=>'video_imgli c_f'),
							'pager'=>array('class'=>'CLinksPager'),
							'cssFile'=>'/css/yii-list-view/styles_h.css',
							'buttonCssClass'=>'bg_x btn_page',
						)); ?>
                   
                   
                </div>
            </div>
   		 	<!--视频列表 end-->
        </div>
        <div class="col_sub f_r">
        <!--  视频分类页左边栏目A 广告位  255*160 start -->
		<div>
			<?php $adzone = Adzone::model()->getData(68,$cid=0);
				foreach( (array)$adzone['ads'] as $key=>$value){?>
				<?php echo CHtml::link(CHtml::image($value['zds_file_url'],$value['zdz_desc'],array('height'=>$adzone['zdz_height'],'width'=>$adzone['zdz_width'])),$value['zds_url'],array('target'=>'_blank'))?>
			<?php }?>
		</div>
		<!-- 广告位 end -->
        <!--热点视频 start-->
        <div class="hot_video video_box_r bg_fff mt10">
        	<div class="hd"><h2 class="c_green2 fs_14">热点视频</h2></div>
            <div class="bd">
            	<ul>
                	<?php foreach($video_hits as $key=>$row):?>
					<li class="c_f">
						<span class="ico_li ico_li0<?php echo $key+1;?>"><?php echo $key+1;?></span>
						<div class="c_img"><?php echo CHtml::link(Tool::thumb($row->zne_thumb,80,60,$row->zne_short), array('/home/news/video_detail/', 'id'=>$row->zne_id), array('target'=>'_blank'));?></div>
						<p class="title"><?php echo CHtml::link($row->zne_short, array('/home/news/video_detail/', 'id'=>$row->zne_id), array('target'=>'_blank'));?></p>
						<p class="c_999"><span class="clicks_ico ico"></span>点击：<em class="c_blue3"><?php echo ($row->zne_hits)?$row->zne_hits:0;?> </em> 次</p>
					</li>
					<?php endforeach;?>
                </ul>
            </div>
        </div>
        <!--热点视频 end-->
        <!--推荐宝贝 start-->
        <div class="hot_pro video_box_r mt10 bg_fff">
			<div class="hd"><h2 class="c_green2 fs_14">推荐宝贝</h2><span class="bg hot"></span></div>
            <div class="bd">
            	<div id="hotBox">
                    <ul id="hotContent">
					<?php
                    $sql = new CDbCriteria(array(
                                'condition' => 'zp_status = 2 AND zp_state = 2',
                                'limit' => '12',
                                'order' => 'zp_sale_num DESC'
                            ));
                    $hotpro = Product::model()->findAll($sql);
                    if ($hotpro) {                        
                        foreach ($hotpro as $i) {
                            ?>
                            <li class="c_f">
                                <div class="c_img c_img70"><?php echo CHtml::link( Tool::thumb( $i->zp_pic,70,70,$i->zp_name ),array('/home/product/detail/', 'id'=>$i->zp_id ),array('target'=>'_blank','title'=>$i->zp_name) ) ?></div>
                                <p class="price"><del class="c_999 f_r mr5">&yen;<?php echo $i->zp_saleprice;?></del><strong class="c_orange fs_14">&yen;<?php echo $i->zp_price;?></strong></p>
                                <p class="title_pro c_666"><?php echo CHtml::link($i->getTitle(), array('/home/product/detail', 'id' => $val->zp_id), array('title' => '点击购买'))?></p>
                            </li>                          
                            <?php
                        }                        
                    } else {
                        ?>
                        <p style="text-align:center">没有找到商品!</p>
                    <?php } ?> 
                    </ul>
                 </div>
            </div>
        </div>
        <script type="text/javascript">
		new Marquee(["hotBox","hotContent"],0,0.1,227,400,20,4000,5000,400)
		</script>
    	<!--推荐宝贝 end-->
        </div>
    </div>   
</div>
<!--正文end-->